package com.hellobike.haxing.modules.operate.enums;

import lombok.Getter;

@Getter

public enum PageComponentParamTypeEnum {

    A(0, "无参数"),
    B(1, "url"),
    C(2, "商品详情页")
    ;

    PageComponentParamTypeEnum(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    private Integer value;
    private String desc;

    public static PageComponentParamTypeEnum getByValue(int value){
        for (int i = 0; i < PageComponentParamTypeEnum.values().length; i++) {
            PageComponentParamTypeEnum pageComponentStyleEnum = PageComponentParamTypeEnum.values()[i];
            if(pageComponentStyleEnum.getValue()==value){
                return pageComponentStyleEnum;
            }
        }
        return null;
    }
}
